<style>
<!--
.account-bind {
	width:90%; 
	float:left;
	padding:5px;
	margin:10px;
	margin-top:50px;
	background:#EEEEEE;
	-moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-box-shadow:1px 1px 1px #333333;
   -webkit-box-shadow:1px 1px 1px #333333;
    box-shadow:1px 1px 1px #333333
}

.authlink{
	width:32px;
	height:32px;

}
-->
</style>
<script>
$(function(){
 

	$(".authlink.unbind").click(function(){
		var iIframe =  $("<iframe/>").css({width:'100%',height:'100%'}).attr("src",$(this).attr('ref'));		

		$('<div/>').css({width:'100%',height:'100%',overflow:'hidden'}).append(iIframe)
		.dialog({width:650,height:450,modal:true});
	});
 
});
</script>
<fieldset>
<legend>请选择要编辑的微博</legend>

<div class="account-bind">

  <div class='icon'>
	<?php foreach($bindInfo['binds'] as $binds):?>
	<div class='authlink' >
	 <?php echo CHtml::image(Yii::app()->baseUrl."/images/icon/{$binds->pid}_32x32.png")?>
	已注册</div> 
	<?php endforeach;?>
	

  <?php foreach($bindInfo['unbinds'] as $unPid):?>
	  <div class='authlink unbind' ref="<?php echo $this->createUrl('/jwidget/weibo/bindAccount',array('pid'=>$unPid));?>">
	    <?php echo CHtml::image(Yii::app()->baseUrl."/images/icon/{$unPid}_32x32.png")?>
	 未注册 </div> 
  <?php endforeach;?>
  </div>
  
</div>
</fieldset>
 